package pl.edu.pw.polygen;

import javax.annotation.PostConstruct;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import pl.edu.pw.polygen.menu.TopMenuBar;

import com.vaadin.ui.HorizontalLayout;

@Component
@Scope("prototype")
public class HeaderPanel extends HorizontalLayout {

	private static final long serialVersionUID = 6986572258362702085L;

	private Logger LOG = Logger.getLogger(HeaderPanel.class);
	
	@Autowired
	private TopMenuBar topMenuBar;
	
	public HeaderPanel() {
		super();
	}

	@SuppressWarnings("unused")
	@PostConstruct
	private void initialize() {
		setHeight("23px");
		setWidth("100%");
		setSpacing(true);
		setMargin(false, false, false, false);
		addComponent(topMenuBar);
	}

}
